package com.platform.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 产品款式表实体
 * 表名 pro_style
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-11 17:02:26
 */
public class ProStyleEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    //产品编号
    private Long pid;
    //产品名称
    private String name;
    //价格
    private BigDecimal price;
    //原价
    private BigDecimal oldPrice;

    private Integer spcPrice;
    //图片地址
    private String imageUrl;
    //创建日期
    private Date createDate;
    //备注
    private String remark;

    //赠送能量
    private BigDecimal giveEnergy;
    //释放SPC
    private BigDecimal spcFree;
    //团队奖励
    private BigDecimal giveTeam;
    //规格
    private String dimensions;

    public String getDimensions() {
        return dimensions;
    }

    public void setDimensions(String dimensions) {
        this.dimensions = dimensions;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 设置：
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Long getId() {
        return id;
    }
    /**
     * 设置：产品编号
     */
    public void setPid(Long pid) {
        this.pid = pid;
    }

    /**
     * 获取：产品编号
     */
    public Long getPid() {
        return pid;
    }
    /**
     * 设置：产品名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取：产品名称
     */
    public String getName() {
        return name;
    }
    /**
     * 设置：价格
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取：价格
     */
    public BigDecimal getPrice() {
        return price;
    }
    /**
     * 设置：原价
     */
    public void setOldPrice(BigDecimal oldPrice) {
        this.oldPrice = oldPrice;
    }

    /**
     * 获取：原价
     */
    public BigDecimal getOldPrice() {
        return oldPrice;
    }
    /**
     * 设置：创建日期
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取：创建日期
     */
    public Date getCreateDate() {
        return createDate;
    }
    /**
     * 设置：备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取：备注
     */
    public String getRemark() {
        return remark;
    }

    public BigDecimal getGiveEnergy() {
        return giveEnergy == null ? new BigDecimal(0) : giveEnergy;
    }

    public void setGiveEnergy(BigDecimal giveEnergy) {
        this.giveEnergy = (giveEnergy==null?new BigDecimal(0):giveEnergy) ;
    }

    public BigDecimal getSpcFree() {
        return spcFree == null ? new BigDecimal(0) : spcFree;
    }

    public void setSpcFree(BigDecimal spcFree) {
        this.spcFree = (spcFree==null?new BigDecimal(0):spcFree);
    }

    public BigDecimal getGiveTeam() {
        return giveTeam == null ? new BigDecimal(0) : giveTeam;
    }

    public void setGiveTeam(BigDecimal giveTeam) {
        this.giveTeam = (giveTeam == null ? new BigDecimal(0) : giveTeam);
    }

    public Integer getSpcPrice() {
        return spcPrice;
    }

    public void setSpcPrice(Integer spcPrice) {
        this.spcPrice = spcPrice;
    }
}
